<?php
/**
 * Logger
 * 
 * @author paq
 *
 */
class Log
{
	protected static $_infoArray = array();
	protected static $_infoCount = 0;
	
	/**
	 * 
	 * @param string $msg
	 * @return void
	 */
	public static function info($msg)
	{
		self::addInfo('INFO: ' . $msg);
	}
	
	/**
	 * 
	 * @param string $msg
	 * @return void
	 */
	public static function notice($msg)
	{
		self::addInfo('NOTICE: ' . $msg);
	}
	
	protected static function addInfo($msg)
	{
		self::$_infoArray[self::$_infoCount++] = $msg;
	}
	
	/**
	 * 
	 * @return string
	 */
	public static function getInfo()
	{
		$res = 'LOG: <br/>';
		foreach (self::$_infoArray as $id => $msg) {
			$res .= $id . ': ' . $msg . '<br />';
		}
		
		return $res;
	}
}